Integrand size = 29, antiderivative size = 447 \[ \int \cos ^3(c+d x) \cot (c+d x) (a+b \sin (c+d x))^{5/2} \, dx=-\frac {2 \left (8 a^4-141 a^2 b^2+36 b^4\right ) \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{693 b^2 d}-\frac {2 a \left (8 a^2-131 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{693 b^2 d}-\frac {2 \left (8 a^2-117 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{5/2}}{693 b^2 d}+\frac {8 a \cos (c+d x) (a+b \sin (c+d x))^{7/2}}{99 b^2 d}-\frac {2 \cos (c+d x) \sin (c+d x) (a+b \sin (c+d x))^{7/2}}{11 b d}+\frac {2 a \left (8 a^4-147 a^2 b^2+444 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{693 b^3 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {2 \left (8 a^6-149 a^4 b^2-516 a^2 b^4-36 b^6\right ) \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{693 b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {2 a^3 \operatorname {EllipticPi}\left (2,\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{d \sqrt {a+b \sin (c+d x)}} \]
[Out]
Time = 0.99 (sec) , antiderivative size = 447, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.345, Rules used = {2974, 3128, 3138, 2734, 2732, 3081, 2742, 2740, 2886, 2884} \[ \int \cos ^3(c+d x) \cot (c+d x) (a+b \sin (c+d x))^{5/2} \, dx=\frac {2 a^3 \sqrt {\frac {a+b \sin (c+d x)}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right ),\frac {2 b}{a+b}\right )}{d \sqrt {a+b \sin (c+d x)}}-\frac {2 \left (8 a^2-117 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{5/2}}{693 b^2 d}-\frac {2 a \left (8 a^2-131 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{693 b^2 d}-\frac {2 \left (8 a^4-141 a^2 b^2+36 b^4\right ) \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{693 b^2 d}+\frac {2 a \left (8 a^4-147 a^2 b^2+444 b^4\right ) \sqrt {a+b \sin (c+d x)} E\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{693 b^3 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {2 \left (8 a^6-149 a^4 b^2-516 a^2 b^4-36 b^6\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right ),\frac {2 b}{a+b}\right )}{693 b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {8 a \cos (c+d x) (a+b \sin (c+d x))^{7/2}}{99 b^2 d}-\frac {2 \sin (c+d x) \cos (c+d x) (a+b \sin (c+d x))^{7/2}}{11 b d} \]
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2884
Rule 2886
Rule 2974
Rule 3081
Rule 3128
Rule 3138
Rubi steps \begin{align*} \text {integral}& = \frac {8 a \cos (c+d x) (a+b \sin (c+d x))^{7/2}}{99 b^2 d}-\frac {2 \cos (c+d x) \sin (c+d x) (a+b \sin (c+d x))^{7/2}}{11 b d}-\frac {4 \int \csc (c+d x) (a+b \sin (c+d x))^{5/2} \left (-\frac {99 b^2}{4}+\frac {5}{2} a b \sin (c+d x)-\frac {1}{4} \left (8 a^2-117 b^2\right ) \sin ^2(c+d x)\right ) \, dx}{99 b^2} \\ & = -\frac {2 \left (8 a^2-117 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{5/2}}{693 b^2 d}+\frac {8 a \cos (c+d x) (a+b \sin (c+d x))^{7/2}}{99 b^2 d}-\frac {2 \cos (c+d x) \sin (c+d x) (a+b \sin (c+d x))^{7/2}}{11 b d}-\frac {8 \int \csc (c+d x) (a+b \sin (c+d x))^{3/2} \left (-\frac {693 a b^2}{8}+\frac {3}{4} b \left (5 a^2-18 b^2\right ) \sin (c+d x)-\frac {5}{8} a \left (8 a^2-131 b^2\right ) \sin ^2(c+d x)\right ) \, dx}{693 b^2} \\ & = -\frac {2 a \left (8 a^2-131 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{693 b^2 d}-\frac {2 \left (8 a^2-117 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{5/2}}{693 b^2 d}+\frac {8 a \cos (c+d x) (a+b \sin (c+d x))^{7/2}}{99 b^2 d}-\frac {2 \cos (c+d x) \sin (c+d x) (a+b \sin (c+d x))^{7/2}}{11 b d}-\frac {16 \int \csc (c+d x) \sqrt {a+b \sin (c+d x)} \left (-\frac {3465}{16} a^2 b^2+\frac {15}{8} a b \left (a^2-68 b^2\right ) \sin (c+d x)-\frac {15}{16} \left (8 a^4-141 a^2 b^2+36 b^4\right ) \sin ^2(c+d x)\right ) \, dx}{3465 b^2} \\ & = -\frac {2 \left (8 a^4-141 a^2 b^2+36 b^4\right ) \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{693 b^2 d}-\frac {2 a \left (8 a^2-131 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{693 b^2 d}-\frac {2 \left (8 a^2-117 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{5/2}}{693 b^2 d}+\frac {8 a \cos (c+d x) (a+b \sin (c+d x))^{7/2}}{99 b^2 d}-\frac {2 \cos (c+d x) \sin (c+d x) (a+b \sin (c+d x))^{7/2}}{11 b d}-\frac {32 \int \frac {\csc (c+d x) \left (-\frac {10395}{32} a^3 b^2-\frac {15}{16} b \left (a^4+480 a^2 b^2+18 b^4\right ) \sin (c+d x)-\frac {15}{32} a \left (8 a^4-147 a^2 b^2+444 b^4\right ) \sin ^2(c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{10395 b^2} \\ & = -\frac {2 \left (8 a^4-141 a^2 b^2+36 b^4\right ) \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{693 b^2 d}-\frac {2 a \left (8 a^2-131 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{693 b^2 d}-\frac {2 \left (8 a^2-117 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{5/2}}{693 b^2 d}+\frac {8 a \cos (c+d x) (a+b \sin (c+d x))^{7/2}}{99 b^2 d}-\frac {2 \cos (c+d x) \sin (c+d x) (a+b \sin (c+d x))^{7/2}}{11 b d}+\frac {32 \int \frac {\csc (c+d x) \left (\frac {10395 a^3 b^3}{32}-\frac {15}{32} \left (8 a^6-149 a^4 b^2-516 a^2 b^4-36 b^6\right ) \sin (c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{10395 b^3}+\frac {\left (a \left (8 a^4-147 a^2 b^2+444 b^4\right )\right ) \int \sqrt {a+b \sin (c+d x)} \, dx}{693 b^3} \\ & = -\frac {2 \left (8 a^4-141 a^2 b^2+36 b^4\right ) \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{693 b^2 d}-\frac {2 a \left (8 a^2-131 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{693 b^2 d}-\frac {2 \left (8 a^2-117 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{5/2}}{693 b^2 d}+\frac {8 a \cos (c+d x) (a+b \sin (c+d x))^{7/2}}{99 b^2 d}-\frac {2 \cos (c+d x) \sin (c+d x) (a+b \sin (c+d x))^{7/2}}{11 b d}+a^3 \int \frac {\csc (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx-\frac {\left (8 a^6-149 a^4 b^2-516 a^2 b^4-36 b^6\right ) \int \frac {1}{\sqrt {a+b \sin (c+d x)}} \, dx}{693 b^3}+\frac {\left (a \left (8 a^4-147 a^2 b^2+444 b^4\right ) \sqrt {a+b \sin (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}} \, dx}{693 b^3 \sqrt {\frac {a+b \sin (c+d x)}{a+b}}} \\ & = -\frac {2 \left (8 a^4-141 a^2 b^2+36 b^4\right ) \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{693 b^2 d}-\frac {2 a \left (8 a^2-131 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{693 b^2 d}-\frac {2 \left (8 a^2-117 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{5/2}}{693 b^2 d}+\frac {8 a \cos (c+d x) (a+b \sin (c+d x))^{7/2}}{99 b^2 d}-\frac {2 \cos (c+d x) \sin (c+d x) (a+b \sin (c+d x))^{7/2}}{11 b d}+\frac {2 a \left (8 a^4-147 a^2 b^2+444 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{693 b^3 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}+\frac {\left (a^3 \sqrt {\frac {a+b \sin (c+d x)}{a+b}}\right ) \int \frac {\csc (c+d x)}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{\sqrt {a+b \sin (c+d x)}}-\frac {\left (\left (8 a^6-149 a^4 b^2-516 a^2 b^4-36 b^6\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{693 b^3 \sqrt {a+b \sin (c+d x)}} \\ & = -\frac {2 \left (8 a^4-141 a^2 b^2+36 b^4\right ) \cos (c+d x) \sqrt {a+b \sin (c+d x)}}{693 b^2 d}-\frac {2 a \left (8 a^2-131 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{3/2}}{693 b^2 d}-\frac {2 \left (8 a^2-117 b^2\right ) \cos (c+d x) (a+b \sin (c+d x))^{5/2}}{693 b^2 d}+\frac {8 a \cos (c+d x) (a+b \sin (c+d x))^{7/2}}{99 b^2 d}-\frac {2 \cos (c+d x) \sin (c+d x) (a+b \sin (c+d x))^{7/2}}{11 b d}+\frac {2 a \left (8 a^4-147 a^2 b^2+444 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{693 b^3 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {2 \left (8 a^6-149 a^4 b^2-516 a^2 b^4-36 b^6\right ) \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{693 b^3 d \sqrt {a+b \sin (c+d x)}}+\frac {2 a^3 \operatorname {EllipticPi}\left (2,\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{d \sqrt {a+b \sin (c+d x)}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 3.18 (sec) , antiderivative size = 521, normalized size of antiderivative = 1.17 \[ \int \cos ^3(c+d x) \cot (c+d x) (a+b \sin (c+d x))^{5/2} \, dx=\frac {-2 \left (\frac {2 i \left (8 a^4-147 a^2 b^2+444 b^4\right ) \left (-2 a (a-b) E\left (i \text {arcsinh}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \sin (c+d x)}\right )|\frac {a+b}{a-b}\right )+b \left (-2 a \operatorname {EllipticF}\left (i \text {arcsinh}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \sin (c+d x)}\right ),\frac {a+b}{a-b}\right )+b \operatorname {EllipticPi}\left (\frac {a+b}{a},i \text {arcsinh}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \sin (c+d x)}\right ),\frac {a+b}{a-b}\right )\right )\right ) \sec (c+d x) \sqrt {-\frac {b (-1+\sin (c+d x))}{a+b}} \sqrt {\frac {b (1+\sin (c+d x))}{-a+b}}}{b^2 \sqrt {-\frac {1}{a+b}}}+\frac {8 b \left (a^4+480 a^2 b^2+18 b^4\right ) \operatorname {EllipticF}\left (\frac {1}{4} (-2 c+\pi -2 d x),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{\sqrt {a+b \sin (c+d x)}}+\frac {2 a \left (8 a^4+1239 a^2 b^2+444 b^4\right ) \operatorname {EllipticPi}\left (2,\frac {1}{4} (-2 c+\pi -2 d x),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{\sqrt {a+b \sin (c+d x)}}\right )+\cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^4+2660 a^2 b^2-9 b^4+4 \left (113 a^2 b^2-54 b^4\right ) \cos (2 (c+d x))-63 b^4 \cos (4 (c+d x))-24 a^3 b \sin (c+d x)+1954 a b^3 \sin (c+d x)+322 a b^3 \sin (3 (c+d x))\right )}{2772 b^2 d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(1572\) vs. \(2(510)=1020\).
Time = 89.30 (sec) , antiderivative size = 1573, normalized size of antiderivative = 3.52
[In]
[Out]
\[ \int \cos ^3(c+d x) \cot (c+d x) (a+b \sin (c+d x))^{5/2} \, dx=\int { {\left (b \sin \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \cos \left (d x + c\right )^{3} \cot \left (d x + c\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int \cos ^3(c+d x) \cot (c+d x) (a+b \sin (c+d x))^{5/2} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \cos ^3(c+d x) \cot (c+d x) (a+b \sin (c+d x))^{5/2} \, dx=\int { {\left (b \sin \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \cos \left (d x + c\right )^{3} \cot \left (d x + c\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int \cos ^3(c+d x) \cot (c+d x) (a+b \sin (c+d x))^{5/2} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \cos ^3(c+d x) \cot (c+d x) (a+b \sin (c+d x))^{5/2} \, dx=\int {\cos \left (c+d\,x\right )}^3\,\mathrm {cot}\left (c+d\,x\right )\,{\left (a+b\,\sin \left (c+d\,x\right )\right )}^{5/2} \,d x \]
[In]
[Out]